package com.leyou.auth.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Data
@Component  //读取文件信息  将信息保存到OSSProperties
@ConfigurationProperties("ly.oss")  //并注入到ioc中
public class OSSProperties {

    private String accessKeyId;
    private String accessKeySecret;
    private String host;
    private String endpoint;
    private String dir;
    private long expireTime;
    private long maxFileSize;
}
